/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person.address;

import enteties.person.address.CountryFacadeLocal;
import java.util.Collection;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.address.CountryDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class CountryBean implements CountryBeanRemote {
    @EJB
    private CountryFacadeLocal countryFacade;
    
    @Override
    public Integer createCountry(String name, String countryCode){
        return countryFacade.createCountry(name, countryCode);
    }
    
    @Override
    public void editCountry(Integer id, String name, String countryCode){
        countryFacade.editCountry(id, name, countryCode);
    }

    @Override
    public void removeCountry(Integer id){
        countryFacade.removeCountry(id);
    }
    
    @Override
    public CountryDetails getCountryDetails(Integer id){
        return countryFacade.getCountryDetails(id);
    }
    
    @Override
    public Collection<CountryDetails> getAllCountryDetails(){
        return countryFacade.getAllCountryDetails();
    }

    

}

